//
//  MyCenterCell.m
//  NewPro
//
//  Created by 何荧红 on 2018/10/3.
//  Copyright © 2018 何荧红. All rights reserved.
//

#import "MyCenterCell.h"



@implementation MyCenterCell

- (void)setHadRealName:(NSString *)hadRealName{
    
    self.conttitle.text = @"未实名";
    if ([hadRealName isEqualToString:@"2"]) {
        
        self.conttitle.text = @"审核中";
    }
    
    if ([hadRealName isEqualToString:@"3"]) {
        
        self.conttitle.text = @"未通过";
    }
    
    if ([hadRealName isEqualToString:@"4"]) {
        
        self.conttitle.text = @"已实名";
    }
}

- (void)setReadNum:(NSString *)num andTiTle:(NSString *)title{
    
    self.redNumLa.alpha = 0;

    NSString *str = [NSString stringWithFormat:@"%@",num];
    
    if ([title isEqualToString:@"消息中心"] && ![str isEqualToString:@"0"] && ![str isEqualToString:@"(null)"]) {
        
        self.redNumLa.alpha = 1;
        self.redNumLa.text = str;
    }
    
}
- (void)awakeFromNib {
    [super awakeFromNib];
    // Initialization code
}

- (void)setSelected:(BOOL)selected animated:(BOOL)animated {
    [super setSelected:selected animated:animated];

    // Configure the view for the selected state
}

@end
